---
title: Divider
description: How to use the Divider component from the Horizon kit.
nav: 45
---

<Sandpack
  template="react-ts"
  customSetup={{
    dependencies: {
      'three': 'latest',
      '@react-three/fiber': '<9',
      '@react-three/uikit': '^1.0.44',
      '@react-three/uikit-horizon': '^1.0.44',
      '@react-three/uikit-lucide': '^1.0.44',
      '@react-three/drei': '<10',
    },
  }}
  files={{
    '/App.tsx': `import { Canvas } from "@react-three/fiber";
import { Fullscreen } from "@react-three/uikit";
import { Panel } from "@react-three/uikit-horizon";
import { Container, Text } from '@react-three/uikit'
import { Divider } from '@react-three/uikit-horizon'

function DividerDemo() {
  return (
    <Container flexDirection="column" gap={16}>
      {/* Horizontal divider separating a title and content */}
      <Container width={360} flexDirection="column" gap={8}>
        <Text>Profile</Text>
        <Divider height={2} />
        <Text color="rgba(255,255,255,0.75)">Name, email and other details appear below.</Text>
      </Container>

      {/* Vertical dividers between cards */}
      <Container flexDirection="row" alignItems="center" gap={12} height={80}>
        <Container
          alignItems="center"
          justifyContent="center"
          width={120}
          height={60}
          backgroundColor="rgba(255,255,255,0.06)"
          borderRadius={8}
        >
          <Text>A</Text>
        </Container>
        <Divider orientation="vertical" width={2} />
        <Container
          alignItems="center"
          justifyContent="center"
          width={120}
          height={60}
          backgroundColor="rgba(255,255,255,0.06)"
          borderRadius={8}
        >
          <Text>B</Text>
        </Container>
        <Divider orientation="vertical" width={2} />
        <Container
          alignItems="center"
          justifyContent="center"
          width={120}
          height={60}
          backgroundColor="rgba(255,255,255,0.06)"
          borderRadius={8}
        >
          <Text>C</Text>
        </Container>
      </Container>
    </Container>
  )
}



export default function App() {
  return (
    <Canvas style={{ position: "absolute", inset: "0", touchAction: "none" }} gl={{ localClippingEnabled: true }}>
      <ambientLight intensity={0.5} />
      <directionalLight intensity={1} position={[-5, 5, 10]} />
      <Fullscreen
        overflow="scroll"
        flexDirection="column"
        alignItems="center"
        justifyContent="center"
      >
        <Panel color="black" dark={{ color: "white" }} padding={32}>
          <DividerDemo />
        </Panel>
      </Fullscreen>
    </Canvas>
  )
}`}}
/>

```bash
import { Divider } from "@react-three/uikit-horizon";
```